

import 'MyAppBar.dart';
import 'package:flutter/material.dart';
/**
 * 垂直布局
 * */
class cloumnWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: CommonBar(title: '垂直布局使用'),
      body: Center(
        child: Column(
          //副轴方向排列方式
          crossAxisAlignment: CrossAxisAlignment.center,
          //主轴方向排列方式
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text('I am dada'),
            Text('I am dada'),
            Text('I am dada'),
            Text('I am dada')
          ],
        ),
      ),
    );
  }
}
